import 'package:boss/ui/page/commodity/bindingCommodity/provider/binding_commodity_provider.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';

class BoundRow extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.symmetric(
        horizontal: 30.w,
        vertical: 15.w,
      ),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Text('已关联的菜品'),
          Consumer<BindingCommodityProvider>(
            builder: (context, provider, child) => Text('${provider.data.bindCount}个'),
          ),
        ],
      ),
    );
  }
}
